﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="paperlist.aspx.cs" Inherits="OnlineTestUI.paperlist" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <f:PageManager ID="PageManager1" AutoSizePanelID="GridPaper" runat="server"></f:PageManager>
            <f:Grid ID="GridPaper" Title="表格" EnableFrame="true"  Width="100%" PageSize="15" ShowBorder="true" ShowHeader="true"
                AllowPaging="true" runat="server" 
                DataKeyNames="id" IsDatabasePaging="true" OnPageIndexChange="GridPaper_PageIndexChange"
                AllowSorting="true" SortField="papername" SortDirection="ASC"
                OnSort="GridPaper_Sort">
                <Columns>
                    <f:RowNumberField />
                    <f:BoundField Width="100px" DataField="papername" SortField="papername" DataFormatString="{0}"
                        HeaderText="试卷名" />
                    <f:BoundField Width="100px" DataField="description" SortField="description" DataFormatString="{0}"
                        HeaderText="简介" />
                    <f:BoundField Width="100px" DataField="createtime" SortField="createtime" DataFormatString="{0}"
                        HeaderText="制作时间" />
                    <f:BoundField Width="100px" DataField="createid" SortField="createid" DataFormatString="{0}"
                        HeaderText="制作人" />
                    <f:BoundField Width="100px" DataField="status" SortField="status" DataFormatString="{0}"
                        HeaderText="状态" />
                    <f:BoundField Width="100px" DataField="starttime" SortField="starttime" DataFormatString="{0}"
                        HeaderText="开始时间" />
                    <f:BoundField Width="100px" DataField="endtime" SortField="endtime " DataFormatString="{0}"
                        HeaderText="结束时间" />
                    <f:BoundField Width="100px" DataField="classid" SortField="classid " DataFormatString="{0}"
                        HeaderText="所属班级" />
                    <f:HyperLinkField HeaderText="参加考试" DataToolTipField="Id" DataTextField="Id"
                        DataTextFormatString="参加考试" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="attendpaper.aspx?id={0}"
                        DataNavigateUrlFieldsEncode="true" Target="_self" ExpandUnusedSpace="True" />
                </Columns>
            </f:Grid>
            <br />
        </div>
    </form>
</body>
</html>
